
local close = ...

local rpc = require 'rpc'
local interface = require 'interface'
local socket = require 'socket'
local serialize = require'serialize'

--local IP = "localhost"
local IP = require"servip"
local port = 55000

local p = rpc.createproxy( IP, port, interface, close=='close' )

-- Create string
local smallString = "aaaaaaaa"
local t1 = socket.gettime()
for i=1, 50 do
  --print("Client_smallString - Interacao " .. i, p.bar( smallString ))
  p.bar( smallString )
end
print((socket.gettime()-t1)/50)

